package com.zoe.app.runner;

import cn.hutool.core.util.ArrayUtil;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author Zoe.Zhang
 * @date 2021/10/10
 * @description
 */
@Component
@Order(1)
public class DynamicCommandRunner2 implements CommandLineRunner {
    /**
     * 当系统启动时,run方法会被触发,
     *
     * @param args Main方法所传入的参数 - 可以在IDEA上面配置运行传入的参数
     * @throws Exception
     */
    @Override
    public void run(String... args) throws Exception {
        System.out.println("DynamicCommandRunner2" + ArrayUtil.toString(args));
    }
}
